<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>メッセージ修正</title>
<link rel="stylesheet" type="text/css" href="/css/global.css" />
<script type="text/javascript" src="/js/YahhoCal.js"></script>
<script type="text/javascript" src="/js/javascript.js"></script>
</head>
<body>
<script type="text/javascript">
YahhoCal.loadYUI();
</script>
<jsp:include page="/header.jsp">
    <jsp:param name="title" value="Index"/>
</jsp:include>
<jsp:include page="/menu.jsp" />
<div id="body">
<h5>メッセージ修正</h5>

<form action="${f:url('/message/updMsg')}" method="post">
<table>
	<tr>
		<td>
			表示年月日<br />
		</td>
		<td>
			<input type="text" name="yearD" id="year" size="4" value="${f:h(resultData.year) }" disabled />
		</td>
		<td>
			年
		</td>
		<td>
			<input type="text" name="monthD" id="month" size="1" value="${f:h(resultData.month) }" disabled />
		</td>
		<td>
			月
		</td>
		<td>
			<input type="text" name="dateD" id="date" size="1" value="${f:h(resultData.date) }" disabled />
		</td>
		<td>
			日
		</td>
	</tr>
</table>
<br />
<table>
	<tr>
		<td>
			表示タイミング：
		</td>
		<td>
			<c:choose>
				<c:when test="${resultData.worh == '0'}">
					<input type="radio" name="worh" value="0" checked disabled />出勤
				</c:when>
				<c:otherwise>
					<input type="radio" name="worh" value="0" disabled />出勤
				</c:otherwise>
			</c:choose>
			<c:choose>
				<c:when test="${resultData.worh == '1'}">
					<input type="radio" name="worh" value="1" checked disabled />退勤
				</c:when>
				<c:otherwise>
					<input type="radio" name="worh" value="1" disabled />退勤
				</c:otherwise>
			</c:choose>
		</td>
		<td>
			<div class="validator"> ${f:h(errors.worh)} </div>
		</td>
	</tr>
	<tr>
		<td>
			メッセージ：
		</td>
		<td>
			<input type="text" name="message" value="${f:h(resultData.message) }" size="80" autocomplete="off" />
		</td>
		<td>
			<div class="validator"> ${f:h(errors.message)} </div>
		</td>
	</tr>
	<tr>
		<td>
			パスワード：
		</td>
		<td>
			<input type="password" name="pass" />
		</td>
		<td>
			<div class="validator"> ${f:h(errors.pass)} ${result } </div>
		</td>
	</tr>
	<tr>
		<td>
			<input type="submit" value="修正" />
		</td>
		<td colspan="2">
			<input type="reset" value="キャンセル" />
		</td>
	</tr>
</table>
<br />
<br />
<input type="hidden" name="messageId" value="${f:h(resultData.messageId) }" />
<input type="hidden" name="year" value="${f:h(resultData.year) }" />
<input type="hidden" name="month" value="${f:h(resultData.month) }" />
<input type="hidden" name="date" value="${f:h(resultData.date) }" />
<input type="hidden" name="worh" value="${f:h(resultData.worh) }" />
</form>
<a href="${f:h('/message/')}">もどる</a>
</div>
<jsp:include page="/footer.jsp" />
</body>
</html>